package cn.com.huak.www.sell.repository;

import cn.com.huak.www.sell.dataObject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author huak@wanggang
 * @date 2018/12/30 20:28
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    /* 通过openid查询所有订单 */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
